package com.wm.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserPermDao {
    @Insert("insert into rbac_perm_user values(#{permId},#{userId})")
    void add(@Param("userId") int userId, @Param("permId") int permId);

   @Delete("delete from rbac_perm_user where user_id=#{userId}")
    void delByUserId(int roleId);
}
